package com.lj.mcore.service;

import com.lj.mcore.entity.Goods;
import com.lj.mcore.entity.GoodsStock;
import com.lj.mcore.utils.PageBean;

import java.util.List;
import java.util.Map;

public interface IGoodsService {

    public abstract boolean save(Goods paramUser);

    public abstract boolean saveWithStock(Goods obj,List<GoodsStock> stocks);

    public abstract boolean delete(Long paramLong);

    public abstract boolean update(Goods paramUser);

    public abstract boolean updateWithStock(Goods obj,List<GoodsStock> stocks);

    public abstract Goods getObjById(Long paramLong);

    public abstract Goods getSingleResult(Map<String,Object> map);

    public abstract List<Goods> query(String paramString, Map paramMap, int paramInt1, int paramInt2);

    public PageBean getList(int pageSize, int page, Map<String, String> query);

    public int checkGoodsSerial(String goods_serial);
}
